import { animateScroll as scroll } from 'react-scroll'
const UseScorll: React.FC = () => {
  function scrollToTop() {
    scroll.scrollToTop()
  }
  return { scrollToTop }
}
export default UseScorll
